export default [
    {
        path: 'hooks',
        component: () => import('@/views/vuePage/01hooks'),
        meta: {
            title: 'hooks',
        },
    },
    {
        path: 'params',
        redirect: '/params/index',
        meta: {
            title: '路由参数',
        },
        children: [
            {
                path: 'index',
                name: 'ParamsIndex',
                meta: { title: '路由参数' },
                component: () => import('@/views/vuePage/02Params'),
            },
            {
                path: 'child/:id',
                meta: {
                    title: '子页面',
                    hidden: true,
                    activeMenu: '/vue/params/index',
                },
                component: () => import('@/views/vuePage/02Params/childPage'),
            },
        ],
    },
    {
        path: 'dom',
        component: () => import('@/views/vuePage/03DomUpdate'),
        meta: {
            title: 'dom更新',
        },
    },
    {
        path: 'route/:id',
        component: () => import('@/views/vuePage/04Route'),
        meta: {
            title: '路由',
        },
    },
]
